package com.trex.modules.tbl.lineform.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.trex.modules.tbl.entity.TblXdLjzyjl;
import com.trex.modules.tbl.lineform.entity.TblXdZxxdctzd;
import com.trex.modules.tbl.replyform.entity.TblXdJxchsd;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 站修线倒车通知单DAO接口
 * @author jy
 * @version 2023-02-04
 */
@MyBatisDao
public interface TblXdZxxdctzdDao extends CrudDao<TblXdZxxdctzd> {

    List<TblXdZxxdctzd> selectLine();

    List<TblXdZxxdctzd> selectLine1(String userid);

    public List<TblXdLjzyjl> getAllLineListByStation(String stationCode,String userCode);


    public Map<String, Object> confirmData(Map<String, Object> map);
	
	public Map<String, Object> cancelData(Map<String, Object> map);

    List<TblXdZxxdctzd> selectLinereply(String userid);

    List<TblXdLjzyjl> getSomeLineListByStation();


    void receiveDataJc(String replace, String stationCode, String station, String areaCode, String area, String wagonGroupCode, String wagonGroupName, String lineCode, String line, String wagonno);

    void updateInfo(String recId, String status, String stationUserCode, String stationUserName, Date stationTime);

    void receiveData(@Param("replace")String replace,
                    @Param("tzdbh")String tzdbh,
                    @Param("status")String status,
                    @Param("wagonno") String wagonno,
                     @Param("deviceNo") String deviceNo,
                      @Param("wagonGroupCode")String wagonGroupCode,
                      @Param("wagonGroupName")String wagonGroupName,
                      @Param("stationCode")String stationCode,
                      @Param("station")String station,
                      @Param("yardnoCode")String yardnoCode,
                      @Param("yardno")String yardno,
                      @Param("lineCode")String lineCode,
                      @Param("line")String line,
                      @Param("isNopeak")String isNopeak,
                      @Param("repairOrderNo")String repairOrderNo,
                     @Param("checkFlag")String checkFlag,
                         @Param("seq")String seq,
                     @Param("add_time")String dest);

    TblXdZxxdctzd selectData(String s);

    String selectDest(String dest);

    int selectCheckFlag(String checkFlag);

    String selectWagonno(String string);

    String selectZxzz(String zxzz);

    String selectDeviceid(String id);

    List<TblXdZxxdctzd> findList1(TblXdZxxdctzd tblXdZxxdctzd);

    List<TblXdZxxdctzd> findInfo(@Param("recId")String recId);

    String selectTzdbh(String id);

    String selectSeq(String id);

    void upDateFlay(String strArray);
}